/*
package com.tqz.web.flux.demo.servlet;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

*/
/**
 * <p>同步的servlet
 *
 * @author tianqingzhao
 * @since 2023/3/4 17:13
 *//*

@WebServlet("/sync")
public class SyncServlet extends HttpServlet {

    private static final Logger log = LoggerFactory.getLogger(SyncServlet.class);

    @Override
    public void init(ServletConfig config) throws ServletException {
        System.out.println("sync servlet init");
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        log.info("当前线程：{}，请求参数信息：{}", Thread.currentThread().getName(), req.getQueryString());

        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        resp.getWriter().println("sync servlet response.");
    }

}
*/
